<?PHP
  class AccessDeniedException extends ContentLionException{

    public function __construct($message, $code = 0) {
      parent::__construct($message, $code);
      $page = new Page();
      $page->loadPropertiesById(Settings::getInstance()->get("accessdenied"));
      parent::setErrorPage($page);
    }

  }
?>